package com.llgz.hotelmanageapi.mapper;

import com.llgz.hotelmanageapi.pojo.DO.CheckoutInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.llgz.hotelmanageapi.pojo.DO.FinancialBill;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 退房登记信息 Mapper 接口
 * </p>
 *
 * @author Bernie_fang
 * @since 2021-07-19
 */
@Mapper
@Repository
public interface CheckoutInfoMapper extends BaseMapper<CheckoutInfo> {
    double getYesterdayIncome();

    public List<FinancialBill> getAllUncheckOut(@Param("name") String name,
                                                @Param("currentPage") Integer currentPage,
                                                @Param("size") Integer size);

    public Integer getAllUncheckOutCount(@Param("name") String name);

}
